package jp.ekasi.pms.application;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {
	
	public static final String ID_PERSPECTIVE = "jp.horkew.pms.application.perspective";

	public void createInitialLayout(IPageLayout layout) {
		
		layout.setEditorAreaVisible(true);
		layout.addPerspectiveShortcut(ID_PERSPECTIVE);

		IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());
		right.addView(IPageLayout.ID_OUTLINE);

		IFolderLayout bottonRight = layout.createFolder("bottonRight", IPageLayout.BOTTOM, (float)0.60, "right");
		bottonRight.addView(IPageLayout.ID_PROP_SHEET);
	}
}
